/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * OpenAPI spec version: 1.0
 * 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */

package net.jdcloud.HufuDatacubeService.model.companyareapost;

import com.jdcloud.sdk.apim.annotation.*;
import java.util.Objects;
import java.util.Arrays;
import java.io.Serializable;
import java.io.IOException;
import javax.xml.bind.annotation.*;
import com.google.gson.annotations.SerializedName;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;

/**
 * CompanyAreaPOSTBody
 */
@XmlRootElement(name = "companyAreaPOSTBody")
@XmlAccessorType(XmlAccessType.FIELD)

public class CompanyAreaPOSTBody implements Serializable {

    private static final long serialVersionUID = 1L;

    @XmlElement(name = "city_name")
    @SerializedName("city_name")
    private String cityName = null;

    @XmlElement(name = "major_item_first_cate_name")
    @SerializedName("major_item_first_cate_name")
    private String majorItemFirstCateName = null;

    @XmlElement(name = "main_province_name")
    @SerializedName("main_province_name")
    private String mainProvinceName = null;

    @XmlElement(name = "province_name")
    @SerializedName("province_name")
    private String provinceName = null;

    public CompanyAreaPOSTBody cityName(String cityName) {
        this.cityName = cityName;
        return this;
    }

    /**
     * 市名称
     * @return cityName
    **/

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public CompanyAreaPOSTBody majorItemFirstCateName(String majorItemFirstCateName) {
        this.majorItemFirstCateName = majorItemFirstCateName;
        return this;
    }

    /**
     * 主营品类
     * @return majorItemFirstCateName
    **/

    public String getMajorItemFirstCateName() {
        return majorItemFirstCateName;
    }

    public void setMajorItemFirstCateName(String majorItemFirstCateName) {
        this.majorItemFirstCateName = majorItemFirstCateName;
    }

    public CompanyAreaPOSTBody mainProvinceName(String mainProvinceName) {
        this.mainProvinceName = mainProvinceName;
        return this;
    }

    /**
     * 主查询省名称
     * @return mainProvinceName
    **/

    public String getMainProvinceName() {
        return mainProvinceName;
    }

    public void setMainProvinceName(String mainProvinceName) {
        this.mainProvinceName = mainProvinceName;
    }

    public CompanyAreaPOSTBody provinceName(String provinceName) {
        this.provinceName = provinceName;
        return this;
    }

    /**
     * 省名称
     * @return provinceName
    **/

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }


    @Override
    public boolean equals(java.lang.Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        CompanyAreaPOSTBody companyAreaPOSTBody = (CompanyAreaPOSTBody) o;
        return Objects.equals(this.cityName, companyAreaPOSTBody.cityName) &&
        Objects.equals(this.majorItemFirstCateName, companyAreaPOSTBody.majorItemFirstCateName) &&
        Objects.equals(this.mainProvinceName, companyAreaPOSTBody.mainProvinceName) &&
        Objects.equals(this.provinceName, companyAreaPOSTBody.provinceName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(cityName, majorItemFirstCateName, mainProvinceName, provinceName);
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class CompanyAreaPOSTBody {\n");
        
        sb.append("    cityName: ").append(toIndentedString(cityName)).append("\n");
        sb.append("    majorItemFirstCateName: ").append(toIndentedString(majorItemFirstCateName)).append("\n");
        sb.append("    mainProvinceName: ").append(toIndentedString(mainProvinceName)).append("\n");
        sb.append("    provinceName: ").append(toIndentedString(provinceName)).append("\n");
        sb.append("}");
        return sb.toString();
    }

    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
        if (o == null) {
          return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }

}

